﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBHelper;
using BusinessLayer.FindArtInfo.Entities;
using System.Data.SqlClient;
using System.Data;

namespace BusinessLayer.FindArtInfo
{
    public class CountArtBL
    {           

        public CountArt GetCountArt()
        {            
            CountArt result = new CountArt();
            var adapter = new BaseDAO(DbConfig.DbFindArtInfoConnectionString);            
            try
            {
                result = adapter.GetList<CountArt>("sp_CountArt_Select_CountArt", CommandType.StoredProcedure, CustomConnectionState.CloseOnExit).FirstOrDefault();
            }
            catch (Exception)
            {
            }
            finally { adapter.Dispose(); }
            return result;
        }
    }
}
